package com.chengww.grab_rp.api

import retrofit2.http.FieldMap
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST

/**
 * Created by chengww on 2/20/21
 * @author chengww
 */
interface PluginService {

    @FormUrlEncoded
    @POST("/plug/login/")
    suspend fun login(@FieldMap body: Map<String,String>): LoginResponse

    @FormUrlEncoded
    @POST("/plug/logout/")
    suspend fun logout(@FieldMap body: Map<String,String>): LogoutResponse

    @FormUrlEncoded
    @POST("/plug/done/")
    suspend fun done(@FieldMap body: Map<String,String>): GrabDownResponse
}